﻿@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="@Url.Content("~/css/style.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" language="javascript" type="text/javascript"></script>
    <script src="@Url.Content("~/My97DatePicker/WdatePicker.js")" type="text/javascript"></script>
    <script type="text/javascript">
        function Query() {
            var txtStartDate = $("#txtStartDate").val();
            var txtEndDate = $("#txtEndDate").val();
            var keywords = $("#txt_keywords").val();
            $.post("Query", { keywords: escape(keywords), StartDate: txtStartDate, EndDate: txtEndDate }, function (data) {
                $("#divContent").html(data);
            });
        }

        function fenye(index) {
            var txtStartDate = $("#txtStartDate").val();
            var txtEndDate = $("#txtEndDate").val();
            var keywords = $("#txt_keywords").val();
            $.post("Query", { index: index, keywords: escape(keywords), StartDate: txtStartDate, EndDate: txtEndDate }, function (data) {
                $("#divContent").html(data);
            });
        }

        function GoPage() {
            var pageIndex = $("#pageIndex").val();
            if (pageIndex != "") {
                fenye(pageIndex);
            }
        }

    </script>
</head>
<body>
    <div>
        <table>
            <tr>
                <td>
                    <label>开课日期:</label><label>
                        <input id="txtStartDate" type="text" class="Wdate" onfocus="WdatePicker()" /></label>
                    <label>
                        至</label>
                    <label>
                        <input id="txtEndDate" type="text" class="Wdate" onfocus="WdatePicker()" /></label></td>
                <td>
                    <label>关键字:</label><input type="text" id="txt_keywords" /></td>
                <td>
                    <input type="button" id="btnSelect" value="查询" class="common_button" onclick="fenye(1);" /></td>
            </tr>
        </table>

        <div id="divSvs" style="margin: 0; padding: 0; color: Red; background-color: White;">
        </div>
        <div style="text-align: center" id="divContent">
            @Html.Partial("Query")
        </div>
    </div>
</body>
</html>
